import java.util.Scanner;
//java3 四舍五入  牛客

public class Main3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d= scanner.nextDouble();

        //write your code here......
        int i=(int)(d+0.5);
        System.out.println(i);
    }
}